FROM ubuntu:22.04
ENV SHELL /bin/bash
ENV HOME /root
ENV TZ Asia/Shanghai
ENV LANGUAGE zh_CN.UTF-8
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY resolv.conf /etc/resolv.conf
RUN sed -i "s@http.*com/@http://mirrors.tencent.com/@g" /etc/apt/sources.list
RUN sed -i "s@http.*org/@http://mirrors.tencent.com/@g" /etc/apt/sources.list
RUN sed -i "s@http.*cn/@http://mirrors.tencent.com/@g" /etc/apt/sources.list
RUN apt update
RUN apt install --reinstall libc6 tzdata  -y
RUN apt autoremove
RUN apt clean all
# RUN timedatectl set-timezone /usr/share/zoneinfo/Asia/Shanghai
RUN rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.deb
WORKDIR $HOME
LABEL description="这是一个基础系统，用于运行由pyinstaller打包的终端程序"
LABEL maintainer="坐公交也用券"
LABEL home="https://gitee.com/liumou_site/ubuntu-python3"
LABEL Site="https://liumou.site"
LABEL Version=1.1

CMD ["/bin/bash"]